package sk.fhi.client.view;

import sk.fhi.client.presenter.EditContactPresenter;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasValue;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

public class EditContactView extends Composite implements EditContactPresenter.Display{

	private static EditContactViewUiBinder uiBinder = GWT
			.create(EditContactViewUiBinder.class);

	interface EditContactViewUiBinder extends UiBinder<Widget, EditContactView> {
	}


	@UiField
	TextBox firstName;
	
	@UiField
	TextBox lastName;
	
	@UiField
	TextBox emailAddress;
	
	@UiField
	Button saveButton;
	
	@UiField
	Button cancelButton;

	public EditContactView() {
		initWidget(uiBinder.createAndBindUi(this));

	}

	@Override
	public HasClickHandlers getCancelButton() {

		return cancelButton;
	}

	@Override
	public HasValue<String> getEmailAddress() {

		return emailAddress;
	}

	@Override
	public HasValue<String> getFirstName() {

		return firstName;
	}

	@Override
	public HasValue<String> getLastName() {

		return  lastName;
	}

	@Override
	public HasClickHandlers getSaveButton() {

		return saveButton;
	}

	@Override
	public Widget asWidget() {

		return this;
	}

	@Override
	public void startProcessing() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void stopProcessing() {
		// TODO Auto-generated method stub
		
	}



}
